package event
{
	import flash.events.Event;
	
	public class MaperEvent extends Event
	{
		public static const GET_POSITION_DATA:String = "getPosionData";
		
		public static const START_OPEN_DEVICE:String = "startOpenDevice";
		
		public static const RETURN_DEVICE_LIST:String = "returnDeviceList";
		
		/**
		 * 定位数据
		 **/
		public static const LOCATION_DATA:String = "locationData";
		
		/**
		 * 查询历史记录
		 **/
		public static const QUERY_HISTORY_TRACKER:String = "queryHistoryTracker";
		
		
		public static const RETURN_FROM_HOME:String = "returnFromHome";
		
		public static const CHANGE_MAP_TYPE:String = "changeMapType";
		
		public static const CHANGE_DEVICE_TYPE:String = "changeDeviceType";
		
		public static const ACTIVATE_MEMBER_SUCCESS:String = "activateMemberSuccess";
		
		public static const DISPLAY_CURRENT_DEVICE_LOCATION:String = "displayCurrentDeviceLocation";
		
		public static const AT_ONCE_DEVICE_LOCATION:String = "atOnceDeviceLocation";
		
		public static const ALERT_WINDOW:String = "alertWindow";
		
		/**
		 * 更新已报警的列表
		 **/
		public static const UPDATE_ALERT_DEVICE:String = "updateAlertDevice";
		
		public var data:Object;
		public function MaperEvent(type:String, data:Object=null,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			
			this.data = data;
		}
		
		override public function clone():Event
		{
			return new MaperEvent(type,data,bubbles,cancelable);
		}
	}
}